<?php
    class UserModel {
        public
            $id,
            $email,
            $password,
            $rights;
        function __construct($args){
            foreach ($args as $name => $value){
                $this->$name = $value;
            }
        }
    }
?>